inverse of matrix by elementary operations